home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8864 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: speedy.grolier.fr!usenet
  2. From: orain@club-internet.fr (Emmanuel ORAIN)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: REQUEST FOR HELP- UNUSUAL MEMORY LEAK!!!
  5. Date: Mon, 26 Feb 1996 22:19:14 GMT
  6. Organization: ExNihilO
  7. Message-ID: <4gteje$ne7@Speedy.grolier.fr>
  8. References: <4em45k$kjc_001@nagf.us-ny.citicorp.com>
  9. NNTP-Posting-Host: ppp-98-170.neuilly.club-internet.fr
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. mike.grant@citicorp.com (Mike Grant) wrote:
  13.  
  14. >I need help with an unusual memory leak in a program
  15. >which I have developed.  It seems to occur upon entry into 
  16. >member functions in a derived string class.  The leak is 
  17. >unusual in that the memory lost is always 4096 bytes.
  18. >I have no dynamically allocated memory of this size.
  19. >[... deleted stuff]
  20. >mike.grant@citicorp.com
  21.  
  22. I wrote a program under OS/2 in order to see dynamically the available
  23. memory (such programs are very common !!). I had a surprise : whatever
  24. are the loaded programs, the available memory was always a 4KB
  25. multiple.
  26. So, my conclusion is this one : malloc (or new), allocate memory from
  27. the C(++) library, which allocates memory from the operating system
  28.